package org.csu.mypetstoreback.persistence;

import org.apache.ibatis.annotations.Param;
import org.csu.mypetstoreback.domain.Category;
import org.springframework.stereotype.Repository;

import java.util.List;


@Repository
//@Mapper
public interface CategoryMapper {
    //获得整个种类列表
    List<Category> getCategoryList();

    //通过种类id获得种类
    Category getCategory(String categoryId);

    //添加种类
   // void addCategory(Category category);
    void addCategory(@Param("categoryId") String categoryId, @Param("categoryName") String categoryName, @Param("categoryDescn") String categoryDescn);
    //删除种类
    void deleteCategory(String categoryId);
}
